package com.lingyistudio.common.response;
/**
 * @ClassName: WebResponseStatus
 * @Description:
 * @Author: cheng
 * @Date: 2019/5/11
 */
public enum WebResponseStatus {

    // 操作成功
    SUCCESS(0),

    //业务异常
    BIZ_ERROR(3),

    //操作失败
    ERROR(1),

    //未登录
    INVALID_TOKEN(2),

    // 未查询到数据
    NOT_FOUND(4);

    int code;

    WebResponseStatus(int code) {
        this.code = code;
    }

    public int value() {
        return this.code;
    }

}
